package com.hskn.hss.module.tlcostoperate.iEnum;
/**
 *运营费类型
 */
public enum TlCostOperateTypeEnum {
    WATERCHARGE("水费","水费",1),
    ELECTRICCHARGE("电费","电费",2),
    OTHERCHARGE("杂费","运营杂费",3);

    private String name;
    private String notes;
    private Integer index;

    TlCostOperateTypeEnum(String name, String notes, Integer index) {
        this.name = name;
        this.notes = notes;
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNotes() {
        return notes;
    }
    public String getNotesByName(String name) {
        for (TlCostOperateTypeEnum c : TlCostOperateTypeEnum.values()) {
            if (c.getName() .equals(name) ) {
                return c.notes;
            }
        }
        return null;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Integer getCompany() {
        return index;
    }

    public void setCompany(Integer index) {
        this.index = index;
    }
}
